let mongoose = require('mongoose')
const { initProjectPhaseData } = require('./initProjectPhaseData');

mongoose.connect('mongodb+srv://2230307367:SdRexYjPDYhUSmkI@cluster0.atojnwb.mongodb.net/data').then(()=>{   
    console.log('连接成功')
    // 初始化项目阶段示例数据
    initProjectPhaseData();
}).catch(()=>{
    console.log('连接失败')
})

module.exports = mongoose